@echo off

set ZEPHYR_BASE=W:/Iron-Workplace/RTOS/zephyr/zephyr

set ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb
set GNUARMEMB_TOOLCHAIN_PATH=C:/Program Files (x86)/GNU Tools Arm Embedded/7 2018-q2-update

rem set USER_BOARD=stm32f4_disco
set USER_BOARD=stm32f4_hd
set USER_BOARD_ROOT=%cd%

rem cmake --clean-first
cmake -GNinja -DBOARD=%USER_BOARD% -DBOARD_ROOT=%USER_BOARD_ROOT% app
rem cmake -G"Eclipse CDT4 - MinGW Makefiles" -DBOARD=%USER_BOARD% -DBOARD_ROOT=%USER_BOARD_ROOT% app/synchronization
rem cmake -G"Eclipse CDT4 - Ninja" -DBOARD=%USER_BOARD% -DBOARD_ROOT=%USER_BOARD_ROOT% synchronization

ninja
